﻿using System;

namespace IntoNails.Infrastructure.ViewModels
{
    public abstract class WorkspaceViewModel : AbstractViewModel, IWorkspaceViewModel
    {
        protected Action<object> WorkspaceCallback; 

        #region Constructors

        protected WorkspaceViewModel()
        {
        }

        protected WorkspaceViewModel(Action<object> callback)
        {
            this.WorkspaceCallback = callback;
        }

        #endregion

        public virtual bool CanActivate
        {
            get { return true; }
        }

        public virtual bool CanDeactivate
        {
            get { return true; }
        }

        public virtual void OnActivate()
        {
        }

        public virtual void OnDeactivate()
        {
        }
    }
}
